/**
 * @file 模板
 * @author 姓名
 * @createDate
 */
'use client';
import { Modal } from 'antd';
import React, { FC } from 'react';
import { useRouter } from 'next/navigation';

type LoginModalProps = {
	children: React.ReactNode;
};
// #----------- 上: ts类型定义 ----------- 分割线 ----------- 下: JS代码 -----------

const LoginModal: FC<LoginModalProps> = ({ children }) => {
	const router = useRouter();
	const handleOk = () => {};
	const handleCancel = () => {
		router.back();
	};
	return (
		<Modal title="Basic Modal" open={true} onOk={handleOk} onCancel={handleCancel}>
			{children}
		</Modal>
	);
};

export default LoginModal;
